package com.dzl.exchange.service;

import com.dzl.base.service.BaseService;
import com.dzl.exchange.pojo.WelfareExchange;
import com.dzl.exchange.pojo.WelfareExchangeGoods;
import com.dzl.exchange.pojo.dto.ExchangeGoodsSkuDto;
import com.dzl.exchange.pojo.vo.ExchangeSkuGoodsVo;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 兑换券组关联商品表(WelfareExchangeGroupGoods)表服务接口
 * @author caobucao
 * @date 2021-07-09 17:30:32
 */
public interface WelfareExchangeGoodsService extends BaseService<WelfareExchangeGoods> {

    /**
     * 修改兑换券商品展示价
     * @param exchangeGoodsId 兑换券商品表主键id
     * @param displayPrice 兑换券商品展示价格
     * @author liuguanjun
     * @date 2021/12/06 11:04
     */
    Integer updateExchangeGoodsDisplayPrice(Integer exchangeGoodsId, BigDecimal displayPrice);

    /**
     * 添加兑换券商品及sku
     * @date 2021/7/26 14:54
     * @author caobucao
     * @param welfareExchange 兑换券
     * @param dto 兑换券商品sku保存传输对象
     * @return java.util.Map<java.lang.String,java.lang.Object>
     */
    Map<String, Object> addExchangeGoodsSku(WelfareExchange welfareExchange, ExchangeGoodsSkuDto dto);

    /**
     * 根据兑换券组id查询商品规格列表
     * @param exchangeGroupId 兑换券组id
     * @author liuguanjun
     * @date 2021/12/02 17:02
     */
    List<ExchangeSkuGoodsVo> selectExchangeSkuGoodsVoByExchangeGroupId(Integer exchangeGroupId);

    /**
     * 根据兑换券组商品id查询商品规格列表
     * @param exchangeGoodsIds 兑换券组商品ids
     * @author liuguanjun
     * @date 2021/12/08 09:52
     */
    List<ExchangeSkuGoodsVo> selectExchangeSkuGoodsVoByExchangeGoodsIds(String exchangeGoodsIds);
}
